package com.abc.xxx.dao;

import com.abc.xxx.model.View;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ViewMapper extends BaseMapper<View> {

    void deleteByType(@Param("type") Integer type);

    List<View> findByParentAndType(@Param("parent") String parent, @Param("type") Integer type);

}
